import React from "react";
import VulDetail from "../../JobManage/WebTask/TaskDetail/WebTaskDetail/VulDetail";
import SSLDetail from "../../JobManage/WebTask/TaskDetail/WebTaskDetail/SSLDetail";
import ChangeCheckDetal from "../../JobManage/WebTask/TaskDetail/WebTaskDetail/ChangeCheckDetail";
import DetailP from "../../JobManage/WebTask/TaskDetail/SecurityEventDetail/DetailP";
import DetailC from "../../JobManage/WebTask/TaskDetail/ContentDetail/DetailC";

export default function IgnoreRiskDetail ({ location }) {
	const task_type = new URLSearchParams(location?.search).get('task_type') || '';
	return <>
		{task_type === 'vul' && <VulDetail location={location} />}
		{task_type === 'ssl' && <SSLDetail location={location} />}
		{task_type === 'securityEvent' && <DetailP location={location} />}
		{task_type === 'content' && <DetailC location={location} />}
		{task_type === 'changeCheck' && <ChangeCheckDetal location={location} />}
	</>
}
